package com.yphone.net.bean.base;

import android.text.TextUtils;

import com.yphone.cjencrypt.EncryptUtils;
import com.yphone.utils.JsonUtil;

public class BaseRequestInfo {


    public String toJson(String json) throws Exception {
        if (TextUtils.isEmpty(json)) {
            return "";
        }
        return EncryptUtils.encode(json);
    }


    public String getJson() {
        return JsonUtil.objectToString(this);
    }


}
